/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JComponent;

/**
 *
 * @author David
 */
public class DibujaMicromundo extends JComponent{
    
    private static final long serialVersionUID = 1L;
  

        public void paintComponent(Graphics g)
        {
            dibujaMMundo(g);
        }
        
        public void dibujaMMundo(Graphics g)
        {
            
            int j=40;
            int l=10;
            for(int i=0;i<13;i++){
                for(int k=0;k<19;k++){
                    if(i==0 && k==0 || i==12 && k==0 ||i==12 && k==18 || i==0 && k==18 )
                        g.setColor(Color.ORANGE);
                    else
                        g.setColor(Color.BLACK);
                    
                    g.fillOval(j,l,20,20);                    
                    j=j+40;}
                j=40;
                l=l+40;
                     
        }
             }

}